import request from '../request/request.ts'

//关于聊天室的api接口

//获取用户相关的所有聊天室空间的信息
export const getChatRoomByUserId =  (data:any) =>  {
    return request({
        url: '/service/team/selectChatRoom',
        method: 'get',
        params:{
            userId: data
        }
    });
}


//获取某个队伍的聊天信息
export const getChatTeamMessageByTeamId = (teamId:any) => {
    return request({
        url: '/service/teamMessage/getMessage/byTeamId',
        method: 'get',
        params: {
            teamId: teamId
        }
    });
}

//获取某个好友间的聊天信息
export const getChatFriendMessageByKey = (friendKey:any) => {
    return request({
        url: '/service/friendMessage/getMessage/byFriendKey',
        method: 'get',
        params: {
            friendKey: friendKey
        }
    });
}




